home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Communications / pcomm / pcomm.txt < prev    next >
Text File  |  1995-06-12  |  68KB  |  2,030 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.              PPPPPP    CCCC    OOOO    MM   MM   MM   MM
  17.              P    P   C       O    O   M M M M   M M M M
  18.              PPPPPP   C       O    O   M  M  M   M  M  M
  19.              P        C       O    O   M     M   M     M
  20.              P         CCCC    OOOO    M     M   M     M
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.                    Pcomm Reference Manual
  30.  
  31.                      version 1.2
  32.  
  33.  
  34.  
  35.                       written by
  36.  
  37.                     Emmet P. Gray
  38.                ...!uunet!uiucuxc!fthood!egray
  39.                 fthood!egray@uxc.cso.uiuc.edu
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.       Pcomm is a public domain telecommunication program for Unix  that
  47.       is  designed  to  operate  similar to the MSDOS program, ProComm.
  48.       ProComm (TM) is copyrighted by Datastorm Technologies, Inc.  This
  49.       is  a completely new program and contains no ProComm source code.
  50.       This is not a Datastorm product.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.                   Table of Contents
  57.  
  58.  
  59.  
  60.  
  61.       1 INTRODUCTION ...............1   6 FILE FUNCTIONS .............23
  62.         1.1 Abbreviations ..........1     6.1 External protocols .....23
  63.         1.2 Requirements ...........1     6.2 Send files .............23
  64.         1.3 Support files ..........2     6.3 Receive files ..........25
  65.                           6.4 Pass thru mode .........25
  66.       2 RUNNING PCOMM ..............3     6.5 Directory ..............26
  67.         2.1 Hot key ................3     6.6 Screen dump ............27
  68.         2.2 Status line ............3     6.7 Start data logging .....27
  69.         2.3 Help screen ............4     6.8 Toggle logging .........27
  70.         2.4 Exit Pcomm .............4
  71.                         7 DIALING WINDOW .............29
  72.       3 SETUP SCREENS ..............5
  73.         3.1 Prompting ..............5   8 AUTO-LOGIN SCRIPTS .........31
  74.         3.2 TTY setup ..............5     8.1 Waitfor command ........31
  75.         3.3 Modem setup ............6     8.2 Matches command ........32
  76.         3.4 Terminal setup .........8     8.3 Modem_break ............32
  77.         3.5 General setup ..........9     8.4 Examples ...............32
  78.         3.6 ASCII xfer setup .......11
  79.         3.7 External protocol ......12  Appendix A - Typical  Modem
  80.                          Configuration ...........35
  81.       4 MAJOR FUNCTIONS ............15
  82.         4.1 Dialing directory ......15  Appendix B - AT&T  Unix  PC
  83.         4.2 Redial .................17       7300/3b1 Dial Codes .....37
  84.         4.3 Keyboard macros ........18
  85.         4.4 Line settings ..........19  Appendix C - Using  Telebit
  86.         4.5 Exit Pcomm .............20       Modems ..................39
  87.         4.6 Unix gateway ...........20
  88.  
  89.       5 UTILITY FUNCTIONS ..........21
  90.         5.1 Program info ...........21
  91.         5.2 Setup screen ...........21
  92.         5.3 Change directory .......21
  93.         5.4 Clear screen ...........21
  94.         5.5 Toggle duplex ..........21
  95.         5.6 Hang up the phone ......22
  96.         5.7 Printer logging ........22
  97.         5.8 Toggle CR - CR/LF ......22
  98.         5.9 Break ..................22
  99.  
  100.  
  101.  
  102.  
  103.  
  104.                    Pcomm Reference Manual                Page 1
  105.  
  106.  
  107.       1.  INTRODUCTION
  108.  
  109.       Pcomm is a public domain, menu driven, telecommunication  program
  110.       designed  to  provide  the same "ease of use" as similar programs
  111.       available in MSDOS.  Some of its features are:
  112.  
  113.            o Large dialing directory
  114.            o Auto-login shell scripts
  115.            o Automatic redial feature
  116.            o Supports popular file transfer protocols
  117.            o External file transfer program support
  118.            o Data logging (log of the terminal session)
  119.            o Printer logging
  120.            o Screen dump
  121.            o Shell escapes
  122.            o Help screen
  123.            o Keyboard macros
  124.            o User customization
  125.            o Administrative logging of phone calls
  126.            o Administrative limits on long distance access
  127.  
  128.  
  129.       Pcomm  does  not  emulate  any  particular  terminal.    Whatever
  130.       terminal you're on, is what the remote system "sees".
  131.  
  132.       1.1.  Abbreviations
  133.  
  134.       Pcomm uses the notation "^A-X" to mean control-A followed by  the
  135.       letter X. The dash (-) in the notation is just for clarity; it is
  136.       not included in the actual command sequence.  Also, there  is  no
  137.       distinction between upper and lower case letters.
  138.  
  139.       The following abbreviations appear in Pcomm:
  140.  
  141.  
  142.            <CR>      carriage return key (sometimes labeled Enter)
  143.            <ESC>     escape key
  144.            <SPACE>   space bar
  145.            <DEL>     del key
  146.            <up>      up arrow key
  147.            <down>    down arrow key
  148.            LF        line feed character (control-J)
  149.            CR        carriage return character (control-M)
  150.  
  151.  
  152.  
  153.       1.2.  Requirements
  154.  
  155.       Pcomm will not run on terminals with a screen size of  less  than
  156.       80  columns by 24 lines or on terminals that lack cursor movement
  157.       capabilities.  For terminals without arrow keys, use  the  letter
  158.       "U"  in  place of "up arrow" and the letter "N" in place of "down
  159.  
  160.  
  161.  
  162.  
  163.  
  164.       Page 2               Pcomm Reference Manual
  165.  
  166.  
  167.       arrow" (the letter "D" would have been  a  more  obvious  choice,
  168.       but, unfortunately, it is used elsewhere).
  169.  
  170.       1.3.  Support files
  171.  
  172.       Pcomm uses four support files, namely:
  173.  
  174.  
  175.            pcomm.dial_dir   the dialing directory
  176.            pcomm.extrnl     the external file transfer programs
  177.            pcomm.modem      the modem/TTY database
  178.            pcomm.param      the start-up default parameters
  179.  
  180.  
  181.  
  182.       There is a default directory  (typically  "/usr/local/lib/pcomm")
  183.       where  the "standard" support files live.  Since the average user
  184.       won't have write permission on these  files,  it's  assumed  that
  185.       they  will  copy one or more of these standard files to their own
  186.       directories and edit them to suit their needs.
  187.  
  188.       Pcomm can use the environmental variable "PCOMM"  to  search  for
  189.       these  "private"  support  files.   If  used,  the  variable must
  190.       contain the path to the directory containing the files.  You  can
  191.       "mix  and  match"  the use of standard and private support files.
  192.       For example, the pcomm.modem file is rarely changed by  the  user
  193.       so  there  would  be  no  need  to  copy that file to the private
  194.       directory.
  195.  
  196.       Pcomm also uses normal Unix shell scripts to perform  the  "chat"
  197.       sequences necessary to automatically log a user onto a system.
  198.  
  199.       The following directories are searched to find the support  files
  200.       and the auto-login shell scripts:
  201.  
  202.            1) directory given with the "-d" option
  203.            2) directory in the PCOMM environmental variable
  204.            3) the current working directory
  205.            4) the default directory (compiled into Pcomm)
  206.  
  207.  
  208.  
  209.  
  210.  
  211.                    Pcomm Reference Manual                Page 3
  212.  
  213.  
  214.       2.  RUNNING PCOMM
  215.  
  216.       Pcomm has the following command line syntax.
  217.  
  218.            pcomm [-d directory] [-f system name]
  219.  
  220.       The "-d" option allows you to specify an additional  path  to  be
  221.       used  when searching for the Pcomm support files.  This option is
  222.       often useful for "borrowing" someone else's dialing directory.
  223.  
  224.       The "-f" option is used to specify automatic dialing of an  entry
  225.       in  the  dialing  directory.   The  name  field  in  the  dialing
  226.       directory (described later) is checked against the  string  given
  227.       on  the  command  line.   If  a  match  is  found,  that entry is
  228.       automatically dialed.  The match  does  not  consider  upper  and
  229.       lower case differences.
  230.  
  231.       2.1.  Hot key
  232.  
  233.       Pcomm uses a "hot key" to precede each command.   (The  value  of
  234.       the  hot  key is a user tunable parameter, but for the purpose of
  235.       this document we'll assume the hot key is defined as control-A).
  236.  
  237.       The hot key is used to  put  Pcomm  in  the  command  mode.   For
  238.       example,  to  get  the help screen, you type control-A (to get to
  239.       the command mode) then the number 0 (to display the help screen).
  240.       When a command is completed, Pcomm returns to the terminal mode.
  241.  
  242.       NOTE:  While in the command  mode,  the  communication  with  the
  243.       remote system is temporarily suspended.
  244.  
  245.       2.2.  Status line
  246.  
  247.       Whenever Pcomm is in  the  command  mode  (or  is  not  currently
  248.       connected  to  a remote) a status line is displayed at the bottom
  249.       of the screen.  A typical status line might look like this:
  250.  
  251.    +-----------+---------+------+-----------+----------+----------+------+------+
  252.    | ^A-0 HELP |  No TTY |  FDX |  1200 E71 |  LOG OFF |  PTR OFF |  CR  |  CR  |
  253.    +-----------+---------+------+-----------+----------+----------+------+------+
  254.  
  255.  
  256.       The eight fields of the status line are:
  257.  
  258.            o help screen command (or a temporary message)
  259.            o name of the TTY device in use
  260.            o duplex mode (FDX = full duplex, HDX = half duplex)
  261.            o current line settings
  262.            o status of data logging option
  263.            o status of printer logging option
  264.            o incoming CR translation
  265.            o outgoing CR translation
  266.  
  267.  
  268.  
  269.  
  270.  
  271.       Page 4               Pcomm Reference Manual
  272.  
  273.  
  274.       2.3.  Help screen
  275.  
  276.       The help screen  gives  a  brief  review  of  all  the  available
  277.       commands.  To access the help screen type ^A and "0" (zero).  The
  278.       typical help screen will look like this:
  279.  
  280.  
  281.   +------------------------------------------------------------------------------+
  282.   |                                                                              |
  283.   |                             P C O M M    H E L P                             |
  284.   |                                                                              |
  285.   +------------------------------------------------------------------------------+
  286.   |                                                                              |
  287.   |     Major Functions          Utility Functions           File Functions      |
  288.   |                                                                              |
  289.   |  Dialing Directory. ^A-D   Program Info .... ^A-I   Send Files .... ^A-<up>  |
  290.   |  Auto Redial ...... ^A-R   Setup Screen .... ^A-S   Receive Files . ^A-<down>|
  291.   |  Keyboard Macros .. ^A-M   Change Directory. ^A-B   Pass Thru Mode. ^A-T     |
  292.   |  Line Settings .... ^A-P   Clear Screen .... ^A-C   Directory ..... ^A-F     |
  293.   |  Exit Pcomm ....... ^A-X   Toggle Duplex ... ^A-E   Screen Dump ... ^A-G     |
  294.   |  Unix Gateway ..... ^A-4   Hang Up Phone ... ^A-H   Start Data Log. ^A-1     |
  295.   |                            Printer On/Off .. ^A-L   Toggle Log .... ^A-2     |
  296.   |                            Toggle CR-CR/LF . ^A-3                            |
  297.   |                            Break Key ....... ^A-7                            |
  298.   |                                                                              |
  299.   +-------------------------- Press any key to continue -------------------------+
  300.  
  301.  
  302.  
  303.       2.4.  Exit Pcomm
  304.  
  305.       To exit Pcomm, you type ^A and "x" to access the exit window.
  306.  
  307.  
  308.           +--- Exit ----------------------+
  309.           |                               |
  310.           |    Exit to Unix? (y/n): _     |
  311.           |                               |
  312.           +-------------------------------+
  313.  
  314.  
  315.  
  316.       To exit, you press the letter "y" (carriage return not required).
  317.  
  318.  
  319.  
  320.  
  321.  
  322.                    Pcomm Reference Manual                Page 5
  323.  
  324.  
  325.       3.  SETUP SCREENS
  326.  
  327.       Pcomm allows you to change many of the default  parameters.   The
  328.       setup  screen  is  accessed  by typing ^A and "s".  The following
  329.       screen shows the sub-menu choices:
  330.  
  331.       ------------------------- Setup Menu ----------------------------
  332.  
  333.                 1) TTY Setup
  334.                 2) Modem Setup
  335.                 3) Terminal Setup
  336.                 4) General Setup
  337.                 5) ASCII Transfer Setup
  338.                 6) External Protocol Setup
  339.                 S) Save setup to disk
  340.  
  341.       -----------------------------------------------------------------
  342.       OPTION ==> _                                  Press <ESC> to exit
  343.  
  344.  
  345.       To select one of the sub-menu choices, you type  the  number  (or
  346.       letter)  at the "OPTION ==>" prompt.  To exit from a sub-menu and
  347.       return to this setup menu screen, you press the escape key.
  348.  
  349.       Changes made affect the current Pcomm session only.  To make  the
  350.       changes become the default, you select the "s" option.
  351.  
  352.       3.1.  Prompting
  353.  
  354.       There are several different types of prompts used  in  the  setup
  355.       screens.  The prompts use the bottom two lines on the display for
  356.       user input and to give more information on what is  being  asked.
  357.       Pcomm  will beep at any illegal input.  The escape key <ESC> will
  358.       abort any prompt.  The prompt types are:
  359.  
  360.            o Character prompt.  Asks you to input a single character.
  361.            o String prompt.  Asks you to  input  a  word  or  group  of
  362.          characters.
  363.            o Numeric prompt.  Asks you for a number.
  364.            o Menu prompt.  Shows a selection and allows you  to  choose
  365.          the  current  selection by pressing the carriage return or
  366.          change the selection by pressing the space bar.
  367.  
  368.       3.2.  TTY setup
  369.  
  370.       The TTY setup allows you to assign the serial ports that Pcomm is
  371.       allowed to use, and what is attached to each port.  A typical TTY
  372.       setup screen might look like this:
  373.  
  374.  
  375.  
  376.  
  377.  
  378.       Page 6               Pcomm Reference Manual
  379.  
  380.  
  381.       -------------------------- TTY Setup ----------------------------
  382.  
  383.               TTY name        Modem name      Init speed
  384.  
  385.               1) tty10        HAYES               0
  386.               2) tty11        HAYES               0
  387.               3) tty12        DIRECT              0
  388.               4) tty13        TELEBIT             19200
  389.               5) tty13        FAST_TELEBIT        19200
  390.               6)                                  0
  391.               7)                                  0
  392.               8)                                  0
  393.               9)                                  0
  394.              10)                                  0
  395.  
  396.               A) Add a TTY entry
  397.               D) Delete a TTY entry
  398.  
  399.       -----------------------------------------------------------------
  400.       OPTION ==> _                                Press <ESC> to return
  401.  
  402.  
  403.       You may edit an entry by typing the entry number at  the  prompt.
  404.       To add an entry, you type "A" at the prompt, etc.
  405.  
  406.       The TTY setup fields are:
  407.  
  408.            1) TTY name.  This is the name of the serial port that Pcomm
  409.            will  be  allowed to use.  Notice that the path component of
  410.            the name, "/dev/" is not used.
  411.  
  412.            2) Modem name.  This a key word that is used later  to  link
  413.            the modem database with the TTY database.  The name could be
  414.            any combination of letters or numbers (both upper and  lower
  415.            case).
  416.  
  417.            NOTE:  All hard-wired ports (ports without modems  attached)
  418.            must use the word "DIRECT" for the modem name.
  419.  
  420.            3) Init speed.  Normally Pcomm will initialize the modem  at
  421.            the  baud  rate in the dialing directory.  If the init speed
  422.            is non-zero, the initialization string is always sent at the
  423.            specified baud rate.  The baud rate is selected from a "menu
  424.            prompt".  See Appendix C for more information about the  use
  425.            of this feature.
  426.  
  427.            NOTE:  It is often best to put the fastest modem/TTYs at the
  428.            end of the TTY database.
  429.  
  430.       3.3.  Modem setup
  431.  
  432.       The modem setup contains the commands to  make  the  modem  dial,
  433.       hang  up the phone, etc.  A typical modem setup screen might look
  434.  
  435.  
  436.  
  437.  
  438.  
  439.                    Pcomm Reference Manual                Page 7
  440.  
  441.  
  442.       like this:
  443.  
  444.       -------------------------- Modem Setup --------------------------
  445.  
  446.              1) Modem name (1 of 4) ... HAYES
  447.              2) Modem init string ..... ATS7=45S11=70E0Q0V1X4&D2!
  448.              3) Dialing command ....... ATDT
  449.              4) Dialing cmd suffix .... !
  450.              5) Hang up string ........ ~~+++~~ATH0!
  451.              6) Auto baud detect ...... Y
  452.              7) 300 baud connect ...... CONNECT!
  453.              8) 1200 baud connect ..... CONNECT 1200
  454.              9) 2400 baud connect ..... CONNECT 2400
  455.             10) 4800 baud connect .....
  456.             11) 9600 baud connect .....
  457.             12) 19200 baud connect ....
  458.             13) No connect string 1 ... BUSY
  459.             14) No connect string 2 ... VOICE
  460.             15) No connect string 3 ... NO CARRIER
  461.             16) No connect string 4 ...
  462.  
  463.       -----------------------------------------------------------------
  464.       OPTION ==> _                                Press <ESC> to return
  465.  
  466.  
  467.       The fields of the modem setup are:
  468.  
  469.            1) Modem name.  This is the key word that  links  the  modem
  470.            database  with  the  TTY database.  A menu prompt is used to
  471.            select the modem name (and the remaining parameters that  go
  472.            with  it).   The  "(1  of  4)"  field  indicates  there  are
  473.            additional modems in the database.
  474.  
  475.            2) Modem initialization string.  This is sent to  the  modem
  476.            whenever  the  port  is selected.  Consult your modem manual
  477.            for the codes to  be  used.   Notice  the  use  of  the  "!"
  478.            character.  This is the "character synonym" for the carriage
  479.            return.
  480.  
  481.            NOTE:  See section 3.5 for the complete  list  of  character
  482.            synonyms.   To  remove  the  special  meaning of a character
  483.            synonym, you must prepend a "\" to the character.
  484.  
  485.            3) Dialing command.  The first part of the command  to  make
  486.            the  modem  dial.   It is assumed that the phone number will
  487.            immediately follow.
  488.  
  489.            4) Dialing command suffix.  The last part of the command  to
  490.            make  the  modem  dial.  Typically this will be the carriage
  491.            return "character synonym".
  492.  
  493.            5) Hang up string.  The command to make the  modem  hang  up
  494.            the  phone.   The  character synonym for a 1 second pause is
  495.  
  496.  
  497.  
  498.  
  499.  
  500.       Page 8               Pcomm Reference Manual
  501.  
  502.  
  503.            the tilde "~" character.
  504.  
  505.            6) Auto baud detect.  Should Pcomm  attempt  to  change  the
  506.            baud  rate  of the TTY to the baud rate matching the connect
  507.            string?  This feature requires the  connect  strings  to  be
  508.            unique.
  509.  
  510.            7-12) Connect strings.  The return messages when  the  modem
  511.            has  connected  to  the  remote.   If different messages are
  512.            returned for each baud rate at which the modem answers, then
  513.            they should be specified.
  514.  
  515.            NOTE:  Pcomm uses the connect  strings  to  determine  which
  516.            baud rates the modem is capable of supporting.  For example,
  517.            if the 4800 baud connect string is empty, Pcomm assumes  the
  518.            modem can not support 4800 baud.
  519.  
  520.            NOTE:   If  two  connect  strings  are  very  similar,  (for
  521.            example, "CONNECT" is entirely contained in "CONNECT 1200"),
  522.            it is possible that the return  code  from  the  modem  will
  523.            match the incorrect string.  To prevent this from happening,
  524.            use the command synonym for the carriage return to terminate
  525.            the  shorter  string (for example, use "CONNECT!" instead of
  526.            "CONNECT").
  527.  
  528.            13-16) No connect strings.  The  messages  returned  by  the
  529.            modem when no connection is made.
  530.  
  531.       3.4.  Terminal setup
  532.  
  533.       The terminal setup allows you to  define  the  hot  key  and  the
  534.       mapping  of the end-of-line characters.  A typical terminal setup
  535.       menu will look like this:
  536.  
  537.       ---------------------- Terminal Setup ---------------------------
  538.  
  539.             1) Hot key (decimal) ...... 1
  540.             2) ASCII version of hot ... ^A
  541.  
  542.             3) Duplex ................. FULL
  543.             4) Flow control ........... XON/XOFF
  544.             5) CR translation (in) .... CR
  545.             6) CR translation (out) ... CR
  546.  
  547.       -----------------------------------------------------------------
  548.       OPTION ==> _                                Press <ESC> to return
  549.  
  550.  
  551.       The fields in the terminal setup are:
  552.  
  553.            1) Hot key.  This is the decimal code for the user definable
  554.            hot  key.  Consult an ASCII/decimal conversion chart for the
  555.            decimal values of other characters.
  556.  
  557.  
  558.  
  559.  
  560.  
  561.                    Pcomm Reference Manual                Page 9
  562.  
  563.  
  564.            2) ASCII version of hot key.  This is the printable  version
  565.            of  the  hot key used by Pcomm in the help screen and status
  566.            line.
  567.  
  568.            3) Duplex.  A menu prompt is shown to  select  between  FULL
  569.            duplex and HALF duplex.  In the half duplex mode, characters
  570.            sent to the remote system are also sent to the screen.  (The
  571.            duplex  mode  can  also  be changed "on the fly" by the ^A-E
  572.            command.)
  573.  
  574.            4) Flow control.  A menu prompt is shown to  select  between
  575.            XON/XOFF  flow  control  and  NONE.  Pcomm often temporarily
  576.            disables flow control during file transfers.
  577.  
  578.            NOTE:  If your terminal gets "stuck" due to a  flow  control
  579.            problem, any ^A (hot key) sequence will resume the flow.
  580.  
  581.            5-6) CR translations.  The end-of-line characters  for  both
  582.            incoming  and  outgoing  carriage  returns can be altered to
  583.            suit the remote system's needs.  A menu prompt provides  the
  584.            following choices:
  585.  
  586.             o CR (no translation)
  587.             o CR/LF translate CR to CR/LF
  588.  
  589.            The incoming CR translation can also be changed "on the fly"
  590.            with the ^A-3 command.
  591.  
  592.       3.5.  General setup
  593.  
  594.       The general setup allows you to define the character synonyms and
  595.       the  default files used by the screen dump and other features.  A
  596.       typical general setup screen might look like this:
  597.  
  598.  
  599.  
  600.  
  601.  
  602.       Page 10              Pcomm Reference Manual
  603.  
  604.  
  605.       ------------------------- General Setup -------------------------
  606.  
  607.             1) Default log file ....... pcomm.log
  608.             2) Screen dump file ....... pcomm.dump
  609.  
  610.             3) Strip high bit  ........ YES
  611.  
  612.             4) Pause character ........ ~
  613.             5) CR character ........... !
  614.             6) CTRL character ......... ^
  615.             7) ESC character .......... |
  616.             8) Break character ........ %
  617.  
  618.             9) Aborted downloads ...... KEEP
  619.  
  620.                10) Connect delay (sec) .... 35
  621.                11) Redial delay (sec) ..... 5
  622.  
  623.       -----------------------------------------------------------------
  624.       OPTION ==> _                                Press <ESC> to return
  625.  
  626.  
  627.       The general setup fields are:
  628.  
  629.            1) Default log file.  The  file  name  to  be  used  as  the
  630.            default  when the data logging is activated (^A-1).  The log
  631.            file name can be changed "on the fly" by the ^A-1 command.
  632.  
  633.            2) Screen dump file.  The file  name  to  be  used  for  the
  634.            screen dump command (^A-G).
  635.  
  636.            3) Strip high bit.  Should Pcomm strip  the  eighth  bit  on
  637.            incoming  and outgoing characters?  A menu prompt allows you
  638.            to select YES or NO.  This feature is not used  during  file
  639.            transfers.
  640.  
  641.            4-8) Character synonyms.  These are symbols that Pcomm  uses
  642.            to   represent   special   characters  (or  perform  special
  643.            functions) when sending commands to the modem.  Synonyms are
  644.            useful  for  entering and displaying special characters in a
  645.            human readable form.  The synonyms are:
  646.  
  647.             o Pause for 1 second
  648.             o The carriage return character (control-M)
  649.             o Convert the next character to control-xx
  650.             o The escape character (control-[)
  651.             o Send a modem break
  652.  
  653.            NOTE:  To prevent  the  special  meaning  of  one  of  these
  654.            characters prepend a "\" to it.
  655.  
  656.            9) Aborted  downloads.   When  a  download  aborts  (fails),
  657.            should  the  partially  completed  file  be  kept?  The menu
  658.  
  659.  
  660.  
  661.  
  662.  
  663.                    Pcomm Reference Manual               Page 11
  664.  
  665.  
  666.            prompt allows "KEEP" or "DELETE".
  667.  
  668.            10) Connect delay.  The number of seconds  Pcomm  will  wait
  669.            for the modem to return a status code.
  670.  
  671.            11) Redial delay.  The number  of  seconds  to  wait  before
  672.            Pcomm tries to call the number again.
  673.  
  674.       3.6.  ASCII transfer setup
  675.  
  676.       This setup screen allows you to select options  to  be  used  for
  677.       ASCII uploads and downloads.  A typical ASCII transfer setup will
  678.       look like this:
  679.  
  680.       ---------------------- ASCII Transfer Setup ---------------------
  681.  
  682.                     ASCII UPLOAD
  683.  
  684.               1) Echo locally ........... NO
  685.               2) Expand blank lines ..... NO
  686.               3) CR delay (ms) .......... 0
  687.               4) Pace the output ........ NO
  688.               5) CR translation ......... NONE
  689.               6) LF translation ......... ADD CR
  690.  
  691.                    ASCII DOWNLOAD
  692.  
  693.               7) Transfer timeout (sec) . 5
  694.               8) CR translation ......... STRIP
  695.               9) LF translation ......... NONE
  696.  
  697.       -----------------------------------------------------------------
  698.       OPTION ==> _                                Press <ESC> to return
  699.  
  700.  
  701.       The fields are:
  702.  
  703.            1) Echo locally.  This is similar to the  duplex  option  in
  704.            that  it  copies  outgoing  characters  to  the screen.  The
  705.            options are YES and NO.
  706.  
  707.            2) Expand blank lines.  Should a blank line  (LF  alone)  be
  708.            expanded  to  a  space and LF?  Some BBS systems use a blank
  709.            line to signal the end of an ASCII upload.  The options  are
  710.            YES and NO.
  711.  
  712.            3) CR delay.  The delay in  milliseconds  to  be  used  when
  713.            sending  a CR.  The menu prompt limits the choice to 0, 100,
  714.            or 150.
  715.  
  716.            4) Pace output.  Should  each  character  sent  be  delayed?
  717.            Very old BBS systems may require this.  The choice is YES or
  718.            NO.
  719.  
  720.  
  721.  
  722.  
  723.  
  724.       Page 12              Pcomm Reference Manual
  725.  
  726.  
  727.            5) CR translation.  The menu prompt provides  the  following
  728.            choices for upload translations:
  729.  
  730.             o NONE (no translation)
  731.             o ADD LF translate CR to CR/LF
  732.             o STRIP remove the CR character
  733.  
  734.  
  735.            6) LF translation. Same as above except the choices are:
  736.  
  737.             o NONE (no translation)
  738.             o ADD CR translate LF to CR/LF
  739.             o STRIP remove the LF character
  740.  
  741.  
  742.            7) Transfer timeout.  The number of seconds to  be  used  to
  743.            determine  the  end  of an ASCII download.  You can halt the
  744.            transfer before the timer goes off by hitting the <ESC> key.
  745.  
  746.            8-9) Same as 5) and 6) above, except the translations  apply
  747.            to ASCII downloading.
  748.  
  749.       3.7.  External protocol setup
  750.  
  751.       This setup screen allows you to embed the name of  external  file
  752.       transfer  programs  into  the  list of available protocols.  When
  753.       transferring files, the external program name will appear on  the
  754.       list of options along with the built-in protocols.
  755.  
  756.       -------------------- External Protocol Setup --------------------
  757.  
  758.                       UPLOAD
  759.  
  760.           Name     Command Line             Requires file list?
  761.            1) zmodem   sz                               Y
  762.            2)                                           N
  763.            3)                                           N
  764.  
  765.                      DOWNLOAD
  766.  
  767.           Name     Command Line             Requires file list?
  768.            4) zmodem   rz                               N
  769.            5)                                           N
  770.            6)                                           N
  771.  
  772.       -----------------------------------------------------------------
  773.       OPTION ==> _                                Press <ESC> to return
  774.  
  775.  
  776.       To change a line (or add a new one), enter the line number at the
  777.       prompt.  You will be prompted for the Name, the Command Line, and
  778.       the "Requires file list?" flag.  To  remove  an  entry,  enter  a
  779.       single space character at the Name prompt.
  780.  
  781.  
  782.  
  783.  
  784.  
  785.                    Pcomm Reference Manual               Page 13
  786.  
  787.  
  788.       The Command Line is the Unix command that you would normally type
  789.       in  to  invoke  the  program  (minus the names of the files to be
  790.       transferred).  The last field in the setup is  used  to  indicate
  791.       whether or not Pcomm should prompt for a list of file names to be
  792.       added to the command.
  793.  
  794.       NOTE:  Pcomm adds a single space character and the file names (if
  795.       any) to the end of the command.
  796.  
  797.       NOTE:  The program itself isn't "embedded" into Pcomm  (it  still
  798.       gets  called  like any other external program), only the name and
  799.       invocation information is actually incorporated into Pcomm.
  800.  
  801.  
  802.  
  803.  
  804.  
  805.       Page 14              Pcomm Reference Manual
  806.  
  807.  
  808.  
  809.  
  810.  
  811.                    Pcomm Reference Manual               Page 15
  812.  
  813.  
  814.       4.  MAJOR FUNCTIONS
  815.  
  816.       When Pcomm is invoked  without  the  "-f"  command  line  option,
  817.       you're  placed  in  the  terminal  mode with a blank screen and a
  818.       status line.  However, since Pcomm hasn't yet selected  a  serial
  819.       port  to  use,  characters typed at the blank screen are ignored.
  820.       Normally the first command you'll use is ^A-D  to  bring  up  the
  821.       dialing directory menu.
  822.  
  823.       4.1.  Dialing directory
  824.  
  825.       To dial another system, you  type  ^A-D  to  access  the  dialing
  826.       directory menu, then enter the entry number at the prompt.
  827.  
  828.       The entry number could be preceded by  a  special  long  distance
  829.       dialing  code  such  as "#5" in lieu of "5" alone.  Long distance
  830.       codes could contain access numbers such as  those  that  MCI  and
  831.       Sprint require.
  832.  
  833.       A typical dialing directory will look like this:
  834.  
  835.  
  836.    +---------------------------------------------------------------------------+
  837.    |                                                                           |
  838.    |                   D I A L I N G       D I R E C T O R Y                   |
  839.    |                                                                           |
  840.    +---------------------------------------------------------------------------+
  841.    |                                                                           |
  842.    |          Name                 Number         Baud P D S   Dpx  Script/TTY |
  843.    |   1- Abbey Road          1 (512) 590-6036    2400-N-8-1    F              |
  844.    |   2- Tel-Med-Com                 555-8686    9600-E-7-1    F              |
  845.    |   3- C Board             1 (619) 722-8724    2400-N-8-1    F              |
  846.    |   4- Crest               1 (213) 471-2518    2400-N-8-1    F   Sample     |
  847.    |   5- Last Chance         1 (219) 762-8411    2400-E-7-1    F              |
  848.    |   6- Killer              1 (214) 827-1994    1200-E-7-1    F              |
  849.    |   7- System A (direct)                      19200-N-8-1    F   tty12      |
  850.    |   8-                                         1200-E-7-1    F              |
  851.    |   9-                                         1200-E-7-1    F              |
  852.    |  10-                                         1200-E-7-1    F              |
  853.    |                                                                           |
  854.    |    ==> _      R Revise           M Manual Dialing    Entry to Dial        |
  855.    |               P LD Codes         D Delete Entry      <CR> Scroll Down     |
  856.    |               <up>/<down> Page   L Print Entries     <ESC> Exit           |
  857.    |                                                                           |
  858.    |    LD Codes Active: @ #                                                   |
  859.    |                                                                           |
  860.    +---------------------------------------------------------------------------+
  861.  
  862.  
  863.  
  864.       The fields of the dialing directory are:
  865.  
  866.  
  867.  
  868.  
  869.  
  870.       Page 16              Pcomm Reference Manual
  871.  
  872.  
  873.            Name) The name of the remote system.
  874.  
  875.            Number) The telephone number to the remote system.
  876.  
  877.            NOTE:  The "(", ")", "-", and space characters are just  for
  878.            looks,  and  don't  get  sent  to the modem.  To prevent the
  879.            stripping of one of these characters, prepend a "\" to it.
  880.  
  881.            Line settings) The communications settings to be  used  when
  882.            dialing that entry.  The range of values are:
  883.  
  884.  
  885.              Baud    Parity    Data bits   Stop bits
  886.             ________________________________________
  887.               300   N - none       7           1
  888.              1200   E - even       8           2
  889.              2400   O - odd
  890.              4800
  891.              9600
  892.             19200
  893.  
  894.  
  895.  
  896.            Duplex) The duplex mode.  Either "F" for  full  or  "H"  for
  897.            half.
  898.  
  899.            Script/TTY) The name of the shell script to  be  used  as  a
  900.            auto-login  "chat"  sequence.   This  field  is also used to
  901.            specify a particular TTY for the entry.
  902.  
  903.            NOTE:  On all hard-wired ports, the script field is used  to
  904.            contain  the  name  of the port.  For example, if tty12 is a
  905.            hard-wired port to "System A", then  the  dialing  directory
  906.            entry for "System A" will have "tty12" in the script field.
  907.  
  908.       The commands at the dialing directory prompt are:
  909.  
  910.            R) Revise  (or  add)  a  dialing  directory  entry  or  long
  911.            distance  dialing  code.  Prompts you to save the changes to
  912.            disk.  A typical revise screen would look like this:
  913.  
  914.  
  915.           +----------------------------------------------------------+
  916.           |                                                          |
  917.           |    Entry to revise? _        (Entry Number, +,-,@,#)     |
  918.           |                                                          |
  919.           +----------------------------------------------------------+
  920.  
  921.  
  922.  
  923.            If a dialing directory entry is selected, each field of  the
  924.            entry  is  shown with its current settings.  You can enter a
  925.  
  926.  
  927.  
  928.  
  929.  
  930.                    Pcomm Reference Manual               Page 17
  931.  
  932.  
  933.            new value, press a carriage return to skip past a field,  or
  934.            enter  a  single space character to erase a field.  An <ESC>
  935.            at any field will abort the command.
  936.  
  937.            P) Print (display) the long distance dialing codes.
  938.  
  939.            <up>/<down>) Scroll the dialing  directory  up  or  down  10
  940.            lines.   Use  the  up  and  down  arrow  keys to access this
  941.            feature.
  942.  
  943.            M) Manual dial.  Prompts you for a phone number rather  than
  944.            using a number already in the dialing directory.
  945.  
  946.            D) Delete an entry or a range of entries.   Prompts  you  to
  947.            save the changes to disk.
  948.  
  949.            L) Print.  Send the dialing directory to the  printer  or  a
  950.            file of your choice.
  951.  
  952.            1-100) Entry number.  Dial the phone for that entry  number.
  953.            If  the script field contains the name of a valid Unix shell
  954.            script, that script is "played" after the connection is made
  955.            to  perform  the auto-login "chat" sequences.  See section 8
  956.            of this manual for more details on the  format  and  use  of
  957.            auto-login shell scripts.
  958.  
  959.            NOTE:  To access the port directly without dialing  (perhaps
  960.            to  send  the dial codes yourself), select an empty entry or
  961.            enter a single space character at the phone number prompt of
  962.            the manual dial option.
  963.  
  964.            <CR> Carriage return.  Scroll the dialing directory down one
  965.            line.
  966.  
  967.       4.2.  Redial
  968.  
  969.       The redial feature is a misnomer; it really is a  queuing  system
  970.       that allows Pcomm to dial several numbers in a cycle until one of
  971.       them answers.
  972.  
  973.       When you invoke the redial command with ^A-R, you're prompted for
  974.       a  list  of  dialing  directory numbers.  (You may also prepend a
  975.       long distance code to the entry number).
  976.  
  977.  
  978.  
  979.  
  980.  
  981.       Page 18              Pcomm Reference Manual
  982.  
  983.  
  984.  
  985.      +--- Redial Queue ----------------------------------------------+
  986.      |                                                               |
  987.      |    Directory Entry Number(s): _                               |
  988.      |                                                               |
  989.      |                  (<CR> for previous numbers)                  |
  990.      +---------------------------------------------------------------+
  991.  
  992.  
  993.  
  994.       To redial the previous number, press a carriage return  alone  at
  995.       the prompt.  An <ESC> aborts this command.
  996.  
  997.       4.3.  Keyboard macros
  998.  
  999.       Keyboard macros are used as a  shortcut  to  send  commonly  used
  1000.       strings  to  the  remote  system with only a few keystrokes.  The
  1001.       characters used to identify the macros  are  the  shifted  number
  1002.       keys.  For example, if the string "ls -alRF | more!" was assigned
  1003.       to the "!" key (the shifted number 1 key), then  when  you  press
  1004.       ^A-!,  the  string  "ls  -alRF  |  more"  is  sent  to the remote
  1005.       (followed by a <CR> because of the "!" character synonym).
  1006.  
  1007.       To review or edit  the  keyboard  macros,  you  type  ^A-M.   The
  1008.       following screen will appear:
  1009.  
  1010.  
  1011.          +-------------------------------------------------------+
  1012.          |                    Keyboard Macros                    |
  1013.          |                                                       |
  1014.          +-------------------------------------------------------+
  1015.          |                                                       |
  1016.          |   ^A-! ls -alRF | more!                               |
  1017.          |   ^A-@                                                |
  1018.          |   ^A-#                                                |
  1019.          |   ^A-$                                                |
  1020.          |   ^A-%                                                |
  1021.          |   ^A-^                                                |
  1022.          |   ^A-&                                                |
  1023.          |   ^A-*                                                |
  1024.          |   ^A-(                                                |
  1025.          |   ^A-)                                                |
  1026.          |                                                       |
  1027.          |   Macro key to revise: _                              |
  1028.          |                                                       |
  1029.          +--------------- Press <ESC> to continue ---------------+
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.                    Pcomm Reference Manual               Page 19
  1036.  
  1037.  
  1038.       To edit a macro, you type the macro key  character  (without  the
  1039.       leading  hot  key).  After typing the new string information, you
  1040.       will be prompted to save the changes to disk.  To erase an  entry
  1041.       enter a single space character.
  1042.  
  1043.       NOTE:  All of the character synonyms described in section 3.5 are
  1044.       available for use with the keyboard macros.
  1045.  
  1046.       4.4.  Line settings
  1047.  
  1048.       The line settings menu  is  invoked  by  ^A-P.   A  typical  line
  1049.       settings menu will look like this:
  1050.  
  1051.  
  1052.          +------------------------------------------------+
  1053.          |                  Line Settings                 |
  1054.          +------------------------------------------------+
  1055.          |                                                |
  1056.          |        Current Settings:  1200,E,7,1           |
  1057.          |                                                |
  1058.          |      1)    300,E,7,1      7)    300,N,8,1      |
  1059.          |      2)   1200,E,7,1      8)   1200,N,8,1      |
  1060.          |      3)   2400,E,7,1      9)   2400,N,8,1      |
  1061.          |      4)   4800,E,7,1     10)   4800,N,8,1      |
  1062.          |      5)   9600,E,7,1     11)   9600,N,8,1      |
  1063.          |      6)  19200,E,7,1     12)  19200,N,8,1      |
  1064.          |                                                |
  1065.          |    Parity       Data Bits       Stop Bits      |
  1066.          |    13) Odd      14) 7 bits      16) 1 bit      |
  1067.          |                 15) 8 bits      17) 2 bits     |
  1068.          |                                                |
  1069.          |    18) Save Changes      YOUR CHOICE: _        |
  1070.          |                                                |
  1071.          +------------- Press <ESC> to return ------------+
  1072.  
  1073.  
  1074.  
  1075.       While  dialing  a  remote,  the  line  settings  in  the  dialing
  1076.       directory  entry  are  automatically  used.   Therefore  the line
  1077.       settings menu is used to fine tune the values during  a  terminal
  1078.       session  or to select the parameters for manual dialing.  You can
  1079.       make the current setting  the  default  by  selecting  the  "Save
  1080.       Changes" option.
  1081.  
  1082.       The current line settings are also displayed in the status line.
  1083.  
  1084.       NOTE:  During file transfers, certain parameters (namely the data
  1085.       bits  and  parity)  will be temporarily changed.  The status line
  1086.       will not reflect these temporary promotions.
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.       Page 20              Pcomm Reference Manual
  1093.  
  1094.  
  1095.       4.5.  Exit Pcomm
  1096.  
  1097.       To exit Pcomm, you type ^A-X.  The phone is hung up  (if  a  call
  1098.       was in progress), the print and data logging features are closed,
  1099.       and the TTY resources are released.
  1100.  
  1101.       NOTE:  Pcomm drops the DTR (Data  Terminal  Ready)  on  the  port
  1102.       before exiting to Unix.
  1103.  
  1104.       4.6.  Unix gateway
  1105.  
  1106.       To temporarily suspend Pcomm and spawn a  Unix  shell,  you  type
  1107.       ^A-4.  To return to Pcomm, you exit the shell normally, typically
  1108.       with ^D or "exit".
  1109.  
  1110.       NOTE:  The SHELL environmental  variable  is  used  to  determine
  1111.       which program to invoke.
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.                    Pcomm Reference Manual               Page 21
  1118.  
  1119.  
  1120.       5.  UTILITY FUNCTIONS
  1121.  
  1122.       The following commands perform secondary functions.
  1123.  
  1124.       5.1.  Program information
  1125.  
  1126.       To display the opening information screen, you type ^A-I.   Press
  1127.       any key to return to the terminal mode.
  1128.  
  1129.       5.2.  Setup screen
  1130.  
  1131.       The setup screens are described in detail in section  3  of  this
  1132.       manual.
  1133.  
  1134.       5.3.  Change directory
  1135.  
  1136.       To change the current working directory while still inside Pcomm,
  1137.       you type ^A-B.  A screen similar to the following will appear:
  1138.  
  1139.  
  1140.      +--- Change directory ------------------------------------------+
  1141.      |                                                               |
  1142.      |    Current directory: /usr/egray                              |
  1143.      |    New directory: _                                           |
  1144.      |                                                               |
  1145.      +---------------------------------------------------------------+
  1146.  
  1147.  
  1148.  
  1149.       Abbreviations known to the shell are acceptable; for example, the
  1150.       "~" character will be translated to the home directory in the csh
  1151.       or ksh shell.
  1152.  
  1153.       5.4.  Clear screen
  1154.  
  1155.       To clear the local screen and home the cursor, you type ^A-C.
  1156.  
  1157.       NOTE:  The remote system may  not  "know"  the  screen  has  been
  1158.       cleared,  and  may  make  assumptions  about  the screen that are
  1159.       incorrect.
  1160.  
  1161.       5.5.  Toggle duplex
  1162.  
  1163.       The ^A-E command changes the duplex mode from FULL  to  HALF,  or
  1164.       from  HALF  to  FULL.   The  status line shows the current duplex
  1165.       mode.  Use the Terminal Setup to make permanent  changes  to  the
  1166.       duplex mode.
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.       Page 22              Pcomm Reference Manual
  1173.  
  1174.  
  1175.       5.6.  Hang up the phone
  1176.  
  1177.       To hang up the phone, you type ^A-H.   The  word  "disconnecting"
  1178.       will briefly show in the status line.
  1179.  
  1180.       NOTE:  Pcomm does not drop the DTR (Data Terminal  Ready)  during
  1181.       the hang up.
  1182.  
  1183.       5.7.  Printer logging
  1184.  
  1185.       The ^A-L command toggles the printer  logging  on  or  off.   The
  1186.       current printer status is displayed in the status line.
  1187.  
  1188.       NOTE:  Since all printing goes to the  normal  Unix  print  spool
  1189.       program,  the  characters  will  not print on the printer as they
  1190.       appear on the screen.  The printing will actually begin when  the
  1191.       printer  logging is turned off and the complete print job is sent
  1192.       to the spool.
  1193.  
  1194.       NOTE:  Due to a technical limitation of Pcomm,  characters  typed
  1195.       while in the half duplex mode will not appear in the print log.
  1196.  
  1197.       5.8.  Toggle CR - CR/LF
  1198.  
  1199.       The ^A-3 command toggles the incoming line termination characters
  1200.       between CR and CR/LF.  The status line shows the current settings
  1201.       (in the next to the last field).
  1202.  
  1203.       5.9.  Break
  1204.  
  1205.       The ^A-7 command sends a modem break to the remote  system.   The
  1206.       word "break" is (very) briefly displayed on the status line.
  1207.  
  1208.       NOTE:  This not the same as the break key  on  the  keyboard  (we
  1209.       don't  want  to send a break to the local system, we want to send
  1210.       it to the remote).
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.                    Pcomm Reference Manual               Page 23
  1217.  
  1218.  
  1219.       6.  FILE FUNCTIONS
  1220.  
  1221.       One of the most important features of a telecommunication program
  1222.       is  the  ability  to transfer files.  The following file transfer
  1223.       protocols are implemented:
  1224.  
  1225.  
  1226.            Protocol     Packet     Error          Multiple
  1227.            name         size       detection      files?
  1228.            _______________________________________________
  1229.            xmodem       128        checksum/CRC   no
  1230.            xmodem-1k    128/1024   checksum/CRC   no
  1231.            modem7       128        checksum       yes 1
  1232.            ymodem       128/1024   CRC            yes 2
  1233.            ymodem-g     128/1024   none 3         yes
  1234.            ASCII        none       none           no
  1235.            zmodem 4     128/1024   CRC            yes
  1236.            (external)   ?          ?              ?
  1237.  
  1238.  
  1239.            Notes:   1 CP/M style file name
  1240.             2 MSDOS style file name and file size
  1241.             3 Not needed!
  1242.             4 zmodem is implemented as an external program
  1243.  
  1244.  
  1245.  
  1246.       NOTE:  The built-in protocols that send  file  name  information,
  1247.       convert   the  Unix  style  file  name  to  fit  the  MSDOS  name
  1248.       restrictions.
  1249.  
  1250.       6.1.  External protocols
  1251.  
  1252.       The external "protocol" is really a method of running an external
  1253.       program  from  Pcomm  to  accomplish  a  file transfer.  The most
  1254.       common use of this  feature  would  be  to  run  Kermit  or  some
  1255.       proprietary program.
  1256.  
  1257.       Frequently used external file transfer programs (such as  zmodem)
  1258.       can  have  their  names  embedded  into  the  list  of  available
  1259.       protocols by using the External Protocol Setup in section 3.7.
  1260.  
  1261.       To abort an external file transfer, you hit the <ESC>  key.   All
  1262.       other characters typed at the keyboard are ignored.
  1263.  
  1264.       NOTE:  The external protocol feature can also be used  (misused?)
  1265.       to pipe the output of a Unix command to the remote.
  1266.  
  1267.       6.2.  Send files
  1268.  
  1269.       To send a file to the remote, you'll first have to  instruct  the
  1270.       remote  system to receive the file, then type ^A-"up arrow".  The
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.       Page 24              Pcomm Reference Manual
  1277.  
  1278.  
  1279.       following screen will appear:
  1280.  
  1281.  
  1282.                      +----- upload ----+
  1283.                      |                 |
  1284.                      |  1) xmodem      |
  1285.                      |  2) xmodem-1k   |
  1286.                      |  3) modem7      |
  1287.                      |  4) ymodem      |
  1288.                      |  5) ymodem-g    |
  1289.                      |  6) ASCII       |
  1290.                      |  7) zmodem      |
  1291.                      |  E) (external)  |
  1292.                      |                 |
  1293.                      |  <ESC> to Abort |
  1294.                      |                 |
  1295.                      |  Protocol: _    |
  1296.                      |                 |
  1297.                      +-----------------+
  1298.  
  1299.  
  1300.  
  1301.       You then select the type of protocol at the prompt,  and  another
  1302.       window similar to this will appear:
  1303.  
  1304.  
  1305.      +--- Send xmodem -----------------------------------------------+
  1306.      |                                                               |
  1307.      |    Enter filename: _                                          |
  1308.      |                                                               |
  1309.      +---------------------------------------------------------------+
  1310.  
  1311.  
  1312.  
  1313.       Now you type in the file  name  or  names  you'd  like  to  send.
  1314.       Wildcards known to the shell are acceptable.
  1315.  
  1316.       Now the file transfer actually begins.  A screen similar  to  the
  1317.       following is displayed during the transfer:
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.                    Pcomm Reference Manual               Page 25
  1324.  
  1325.  
  1326.  
  1327.                  +-------------- uploading -------------+
  1328.                  |                                      |
  1329.                  |            Protocol: xmodem          |
  1330.                  |           File name: main.c          |
  1331.                  |           File size: 4420            |
  1332.                  |  Error check method: CRC             |
  1333.                  |   Est transfer time: 0:00:50         |
  1334.                  |         Block count: 5               |
  1335.                  |    Percent complete: 11.2%           |
  1336.                  |   Bytes transferred: 640             |
  1337.                  |   Errors this block: 0               |
  1338.                  |   Total error count: 0               |
  1339.                  |        Last message: NONE            |
  1340.                  |                                      |
  1341.                  +-------- Press <ESC> to abort --------+
  1342.  
  1343.  
  1344.  
  1345.       As  the  transfer  progresses,  the   "block   count",   "percent
  1346.       complete",  and  "bytes  transferred" fields will be continuously
  1347.       updated.  If errors occur the  "errors  this  block"  and  "total
  1348.       error  count" fields will be updated and the "last message" field
  1349.       will contain a message about the error.
  1350.  
  1351.       At the end of the transfer, Pcomm will beep  and  return  to  the
  1352.       terminal  mode.   If  an  error  occurred  and  the  transfer was
  1353.       aborted, you  will  be  prompted  to  acknowledge  the  error  by
  1354.       pressing a key before returning to the terminal mode.
  1355.  
  1356.       6.3.  Receive files
  1357.  
  1358.       To receive a file (or group  of  files)  from  a  remote  system,
  1359.       you'll  have  to  first instruct the remote system, then type ^A-
  1360.       "down arrow".  Receiving a file is basically the same as  sending
  1361.       a file.
  1362.  
  1363.       NOTE:  Some systems do not pad the end of the file with  control-
  1364.       Z's and therefore files might grow in length when received.
  1365.  
  1366.       NOTE:   Due  to  a  technical  limitation  of  Pcomm,  characters
  1367.       received during an ASCII download will not reappear on the screen
  1368.       when you return to the terminal mode.
  1369.  
  1370.       6.4.  Pass thru mode
  1371.  
  1372.       The pass through mode is used when you have two or more  machines
  1373.       in  a communications daisy chain.  The following diagram shows an
  1374.       example of this type of arrangement:
  1375.  
  1376.  
  1377.           +---------+        +----------+        +----------+
  1378.           | IBM PC  |        |   Unix   |        |  IBM PC  |
  1379.           | running |  <---- |  running |  <---- |  running |
  1380.           | ProComm |  ----> |   Pcomm  |  ----> |   RBBS   |
  1381.           +---------+        +----------+        +----------+
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.       Page 26              Pcomm Reference Manual
  1388.  
  1389.  
  1390.       If a file is to be transferred from the last machine to the first
  1391.       machine,  the  middle machine must appear completely transparent.
  1392.       The middle machine must "forward the data" without altering it in
  1393.       any  way.   The  pass  through  mode "expires" after a designated
  1394.       period of inactivity, after which the user  is  returned  to  the
  1395.       terminal mode.
  1396.  
  1397.       To access the pass through mode, you type  ^A-T.   The  following
  1398.       screen will appear:
  1399.  
  1400.  
  1401.      +--- Pass Thru Mode --------------------------------------------+
  1402.      |                                                               |
  1403.      |    Enter the expiration time (5-60 sec) : _                   |
  1404.      |                                                               |
  1405.      +---------------------------------------------------------------+
  1406.  
  1407.  
  1408.  
  1409.       NOTE:  While in the pass through mode, no Pcomm  command  to  the
  1410.       middle  machine will be honored.  Therefore, the only way to exit
  1411.       this mode is to not type  anything  on  the  keyboard  until  the
  1412.       expiration period has elapsed.
  1413.  
  1414.       NOTE:  The baud rates to and from the middle machine need not  be
  1415.       the  same, however the slowest speed determines the overall speed
  1416.       of the transfer (the weakest link in the chain).
  1417.  
  1418.       6.5.  Directory
  1419.  
  1420.       To obtain a listing of a directory  on  the  local  system  while
  1421.       still  running  Pcomm,  you type ^A-F.  The following screen will
  1422.       appear:
  1423.  
  1424.  
  1425.      +--- List Directory --------------------------------------------+
  1426.      |                                                               |
  1427.      |    Current directory: /usr/egray                              |
  1428.      |    File spec (wildcards allowed): _                           |
  1429.      |                                                               |
  1430.      +---------------------------------------------------------------+
  1431.  
  1432.  
  1433.  
  1434.       Abbreviations known to the  shell  are  valid.   Output  is  sent
  1435.       through a "more" like program.
  1436.  
  1437.       NOTE:  Since we're really doing a popen() to  the  "ls"  command,
  1438.       additional command line options are also valid.
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.                    Pcomm Reference Manual               Page 27
  1445.  
  1446.  
  1447.       6.6.  Screen dump
  1448.  
  1449.       To dump the contents of the current  screen  (minus  any  windows
  1450.       showing)  you  type ^A-G.  The contents of the screen are written
  1451.       to the file specified in the general setup for this purpose.   If
  1452.       the  file already exists, the screen contents are appended to the
  1453.       file.  The message "screen  dump"  will  briefly  appear  in  the
  1454.       status line.
  1455.  
  1456.       NOTE:  The screen contents  are  subject  to  the  available  VCS
  1457.       (video command sequence) emulation, so an exact representation is
  1458.       not guaranteed.
  1459.  
  1460.       6.7.  Start data logging
  1461.  
  1462.       To start the data logging, or  change  the  file  used  for  data
  1463.       logging, you type ^A-1.  The following screen will appear:
  1464.  
  1465.  
  1466.      +--- Start Data Logging ----------------------------------------+
  1467.      |                                                               |
  1468.      |    Default log file: pcomm.log                                |
  1469.      |    New log file: _                                            |
  1470.      |                                                               |
  1471.      +---------------------------------------------------------------+
  1472.  
  1473.  
  1474.  
  1475.       To keep the default file, just press a  carriage  return  at  the
  1476.       prompt,  otherwise,  enter  a new file name.  If the file already
  1477.       exits, the new data is appended to the file.
  1478.  
  1479.       The status of the logging is shown in the status line.
  1480.  
  1481.       NOTE:  Due to a technical limitation of Pcomm,  characters  typed
  1482.       while in the half duplex mode will not appear in the log file.
  1483.  
  1484.       6.8.  Toggle logging
  1485.  
  1486.       To temporarily suspend data logging or to start it again  without
  1487.       being prompted for the file name, you type ^A-2.
  1488.  
  1489.  
  1490.  
  1491.  
  1492.  
  1493.       Page 28              Pcomm Reference Manual
  1494.  
  1495.  
  1496.  
  1497.  
  1498.  
  1499.                    Pcomm Reference Manual               Page 29
  1500.  
  1501.  
  1502.       7.  DIALING WINDOW
  1503.  
  1504.       While Pcomm is dialing another system, a screen  similar  to  the
  1505.       following is shown:
  1506.  
  1507.  
  1508.  
  1509.        +--------------------------------------------------------------------+
  1510.        |                                                                    |
  1511.        |                   D I A L I N G      W I N D O W                   |
  1512.        |                                                                    |
  1513.        +--------------------------------------------------------------------+
  1514.        |                                                                    |
  1515.        |                       System name: C Board                         |
  1516.        |                       Pass number: 1                               |
  1517.        |              Elapse time this try: 4                               |
  1518.        |             Time at start of dial: 14:53:36                        |
  1519.        |         Time at start of this try: 14:53:37                        |
  1520.        |                Connect delay time: 35                              |
  1521.        |                 Redial delay time: 5                               |
  1522.        |                        Script/TTY:                                 |
  1523.        |                Result of last try:                                 |
  1524.        |                                                                    |
  1525.        |  <SPACE>: Recycle    <DEL>: Remove from queue    E: Change delays  |
  1526.        |                                                                    |
  1527.        +----------------------- Press <ESC> to abort -----------------------+
  1528.  
  1529.  
  1530.  
  1531.       The options available during the dialing window are:
  1532.  
  1533.            SPACE) Press the space  bar  to  stop  the  dialing  of  the
  1534.            current  entry and go on to the next entry in the queue.  If
  1535.            there is only  one  entry  in  the  queue,  that  number  is
  1536.            redialed.
  1537.  
  1538.            DEL) Press the DEL key to remove the current number from the
  1539.            queue.
  1540.  
  1541.            E) Press the letter "E" to change the connect delay time, or
  1542.            the  redial delay time (the pause between dialing attempts).
  1543.            You will be prompted to save the changes to disk.
  1544.  
  1545.            NOTE:  While the DEL and E options are being processed,  the
  1546.            dialing is temporarily suspended.
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552.       Page 30              Pcomm Reference Manual
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.                    Pcomm Reference Manual               Page 31
  1559.  
  1560.  
  1561.       8.  AUTO-LOGIN SCRIPTS
  1562.  
  1563.       Pcomm doesn't have a built-in script language,  instead  it  uses
  1564.       Unix  shell  scripts  (Bourne  shell,  C shell, or Korn shell) to
  1565.       perform the necessary "chat" sequences to log  a  user  on  to  a
  1566.       remote system.
  1567.  
  1568.       Since shell scripts are  run  "outside"  of  Pcomm,  they  cannot
  1569.       contain Pcomm commands.  For example, an auto-login script cannot
  1570.       dial a phone number or turn on the  data  logging  feature.   The
  1571.       auto-login  scripts  are  run  after the connection to the remote
  1572.       system has been made.
  1573.  
  1574.       You may hit the <ESC> key at any  time  to  abort  an  auto-login
  1575.       script  before  it  has completed.  All other characters typed at
  1576.       the keyboard are ignored.
  1577.  
  1578.       WARNING:  Any file that has a "clear text" (un-encrypted) version
  1579.       of  your  password  is a significant security threat.  You should
  1580.       remove the read permission to all others.
  1581.  
  1582.       In order to assist in the creation  of  auto-login  scripts,  the
  1583.       following external programs have been provided.
  1584.  
  1585.       8.1.  Waitfor command
  1586.  
  1587.       The waitfor command has the following syntax:
  1588.  
  1589.            waitfor -n string
  1590.  
  1591.       where "n" is the number of seconds to wait and  "string"  is  the
  1592.       string to wait for.
  1593.  
  1594.       Waitfor returns a 0 if the string was found, a  1  if  it  didn't
  1595.       find  the  string within the allotted time, and a -1 if there was
  1596.       an error.  Waitfor returns immediately if the string is found.
  1597.  
  1598.       The waitfor command would  typically  be  used  in  a  script  to
  1599.       indicate that the desired prompt has appeared.  For example:
  1600.  
  1601.  
  1602.            waitfor -5 "ogin:"
  1603.            if [ "$?" -eq 0 ]
  1604.            then
  1605.             echo "egray"
  1606.            fi
  1607.  
  1608.  
  1609.       would wait up to 5 seconds for the string "ogin:".  If the return
  1610.       code  is  0 (the strings did appear), send the string "egray" (my
  1611.       user ID).
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.       Page 32              Pcomm Reference Manual
  1618.  
  1619.  
  1620.       NOTE:  Upper and lower case letters are considered different.  If
  1621.       you are not sure if the prompt is "Login:" or "login:", then skip
  1622.       the first letter in the string and use "ogin:".
  1623.  
  1624.       8.2.  Matches command
  1625.  
  1626.       The matches command has the following syntax:
  1627.  
  1628.            matches string1 string2
  1629.  
  1630.       Matches returns a 0 if  string2  is  contained  in  string1,  and
  1631.       returns  a 1 if it does not.  Unlike waitfor, the matches command
  1632.       does not read the TTY port.
  1633.  
  1634.       The matches command could be used to test string values such as:
  1635.  
  1636.  
  1637.            read junk
  1638.            matches $junk "login failed"
  1639.            if [ "$?" -eq 0 ]
  1640.            then
  1641.             exit
  1642.            fi
  1643.  
  1644.  
  1645.       8.3.  Modem_break command
  1646.  
  1647.       The modem_break command performs a modem break on  the  TTY.   It
  1648.       would  often  be  used  to  tell  the  remote system to switch to
  1649.       another baud rate.
  1650.  
  1651.       The modem_break program has no command line arguments.
  1652.  
  1653.       8.4.  Examples
  1654.  
  1655.       It is not my intention to teach the reader  the  fundamentals  of
  1656.       Unix  shell  programming.   There  are  several good books on the
  1657.       subject available in stores.
  1658.  
  1659.       Remember to add execute permission to the  file  and  remove  the
  1660.       read permission to all others.
  1661.  
  1662.       The simplest auto-login script may contain the following:
  1663.  
  1664.  
  1665.  
  1666.  
  1667.  
  1668.                    Pcomm Reference Manual               Page 33
  1669.  
  1670.  
  1671.            # send a <CR>
  1672.            echo ""
  1673.            # wait 5 seconds for the login prompt
  1674.            waitfor -5 ogin:
  1675.            # send my user ID
  1676.            echo "egray"
  1677.            # wait 5 seconds for the password prompt
  1678.            waitfor -5 assword:
  1679.            # send my password
  1680.            echo "abcdefg"
  1681.            # return to Pcomm
  1682.            exit 0
  1683.  
  1684.  
  1685.       A more complex script is required if the user must send  a  modem
  1686.       break to synchronize the baud rate of the remote.  For example:
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.       Page 34              Pcomm Reference Manual
  1693.  
  1694.  
  1695.            echo ""
  1696.            try=0
  1697.            # loop until done
  1698.            while true
  1699.            do
  1700.             # wait 5 seconds for the login prompt
  1701.             waitfor -5 ogin:
  1702.             # test the exit code of the waitfor command
  1703.             if [ "$?" -eq 0 ]
  1704.             then
  1705.              # send my user ID and exit the loop
  1706.              echo "egray"
  1707.              break
  1708.             fi
  1709.  
  1710.             # increment the number of attempts
  1711.             try=`expr $try + 1`
  1712.             # test to see if we should give up
  1713.             if [ "$try" -eq 5 ]
  1714.             then
  1715.              exit 1
  1716.             fi
  1717.  
  1718.             # send a modem break and loop again
  1719.             modem_break
  1720.             echo ""
  1721.            done
  1722.            # wait 5 seconds for the password prompt
  1723.            waitfor -5 assword:
  1724.            # test the return code from waitfor
  1725.            if [ "$?" -eq 0 ]
  1726.            then
  1727.             # send my password
  1728.             echo "abcdefg"
  1729.            else
  1730.             exit 1
  1731.            fi
  1732.            # return to Pcomm
  1733.            exit 0
  1734.  
  1735.  
  1736.  
  1737.  
  1738.  
  1739.                    Pcomm Reference Manual               Page 35
  1740.  
  1741.  
  1742.       Appendix A - Typical Modem Configuration
  1743.  
  1744.       I can't begin to describe how to configure every  modem  to  work
  1745.       with  Pcomm.   There  are,  however, several guidelines that will
  1746.       apply to virtually any modem.
  1747.  
  1748.            1) Pcomm doesn't care about the DCD  (Data  Carrier  Detect)
  1749.            settings of the modem.
  1750.  
  1751.            2) It would be nice (but not essential) if the loss  of  the
  1752.            DTR (Data Terminal Ready) caused the modem to hang up.
  1753.  
  1754.            3) Pcomm doesn't care if commands are  echoed  back  by  the
  1755.            modem  (it  might  save  a  few  milliseconds if echoing was
  1756.            turned off).
  1757.  
  1758.            4) Some sort of result codes are required.   Numeric  result
  1759.            codes are ok...  but since they are displayed on the screen,
  1760.            word result codes will make more sense.
  1761.  
  1762.            5) If the modem can return different result codes  for  each
  1763.            baud rate at which it answers, then by all means, use them.
  1764.  
  1765.            6) Anything that is returned by the modem, but not listed in
  1766.            the modem setup, is ignored.
  1767.  
  1768.            7) Systems running uugetty (the  bi-directional  version  of
  1769.            getty  that  comes  with  HDB  uucp)  should  include  extra
  1770.            commands in the initialization string to assure that uugetty
  1771.            switches  to its dial out mode.  Normally, "AT!~AT!~" causes
  1772.            enough dialogue to force uugetty to release the line.
  1773.  
  1774.       For  example,  a  2400  baud  Hayes  compatible  modem  might  be
  1775.       configured with the following command:
  1776.  
  1777.            AT S7=45 S11=70 E0 Q0 V1 X4 &D2
  1778.  
  1779.  
  1780.             AT       Hayes attention command
  1781.             S7=45    Wait 45 seconds for an answer
  1782.             S11=70   70 ms touch tone dialing
  1783.             E0       Don't echo commands (not essential)
  1784.             Q0       Turn result codes on
  1785.             V1       Return word result codes
  1786.             X4       Use as many result codes as you've got
  1787.             &D2      Hang up when DTR is lost (nice to have)
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.       Page 36              Pcomm Reference Manual
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.                    Pcomm Reference Manual               Page 37
  1800.  
  1801.  
  1802.       Appendix B - AT&T Unix PC 7300/3b1 Dial Codes
  1803.  
  1804.       The dialing codes used by  the  OBM  (On  Board  Modem)  are  not
  1805.       straight-forward.   The  modem  setup, as distributed, looks like
  1806.       this:
  1807.  
  1808.       -------------------------- Modem Setup --------------------------
  1809.  
  1810.              1) Modem name (1 of 2) ... OBM
  1811.              2) Modem init string .....
  1812.              3) Dialing command ....... %
  1813.              4) Dialing cmd suffix .... @
  1814.              5) Hang up string ........
  1815.              6) Auto baud detect ...... N
  1816.              7) 300 baud connect ...... CONNECT
  1817.              8) 1200 baud connect ..... CONNECT
  1818.              9) 2400 baud connect .....
  1819.             10) 4800 baud connect .....
  1820.             11) 9600 baud connect .....
  1821.             12) 19200 baud connect ....
  1822.             13) No connect string 1 ...
  1823.             14) No connect string 2 ...
  1824.             15) No connect string 3 ...
  1825.             16) No connect string 4 ...
  1826.  
  1827.       -----------------------------------------------------------------
  1828.       OPTION ==> _                                Press <ESC> to return
  1829.  
  1830.  
  1831.       The relevant fields of the modem setup are:
  1832.  
  1833.            1) Modem name.  This must be "OBM".
  1834.  
  1835.            NOTE:  Pcomm uses the modem name  as  a  flag  to  determine
  1836.            which  dialing  method  to  use.   The  string  "OBM"  is  a
  1837.            "reserved word" that Pcomm uses to switch to the  AT&T  Unix
  1838.            PC 7300/3b1 dialing method.
  1839.  
  1840.            3) Dialing command.  This  should  be  "%"  for  touch  tone
  1841.            dialing or "^" for pulse dialing.
  1842.  
  1843.            4) Dialing cmd suffix.  This must be the "@" character.
  1844.  
  1845.            6) Auto baud detect.  The  OBM  cannot  use  the  auto  baud
  1846.            detect feature.
  1847.  
  1848.            7-8) Connect strings.  Although  the  OBM  doesn't  actually
  1849.            return any result codes, these fake fields are required.
  1850.  
  1851.       Additional OBM dialing codes from the phone(7) manual:
  1852.  
  1853.  
  1854.  
  1855.  
  1856.  
  1857.       Page 38              Pcomm Reference Manual
  1858.  
  1859.  
  1860.  
  1861.            "~"   wait for next dial tone
  1862.            ","   pause 2 seconds
  1863.            ":"   pause 10 seconds
  1864.            "&"   perform a hookflash
  1865.            "%"   begin tone dialing
  1866.            "^"   begin pulse dialing
  1867.  
  1868.  
  1869.  
  1870.       These codes can be inserted into the  phone  number  string,  for
  1871.       example:
  1872.  
  1873.  
  1874.            555-1234~56   dial 555-1234, wait for tone, dial 56
  1875.            9,555-1234    dial 9, wait 2 seconds, dial 555-1234
  1876.            %555^1234     dial 555 using tone, 1234 using pulse
  1877.  
  1878.  
  1879.  
  1880.       NOTE:  The dialing codes for the OBM are not subject to character
  1881.       synonym  translations, therefore the "%", "^", and "~" characters
  1882.       do NOT have to be preceded by the "\" character to  remove  their
  1883.       special meaning.
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.                    Pcomm Reference Manual               Page 39
  1890.  
  1891.  
  1892.       Appendix C - Using Telebit Modems
  1893.  
  1894.       Telebit modems are probably  representative  of  the  newer  high
  1895.       speed  intelligent modems available today and therefore warrant a
  1896.       more detailed discussion.
  1897.  
  1898.       1) Locked interface speed
  1899.  
  1900.            Telebit  modems  have  the  ability  to  maintain  a  locked
  1901.            interface  speed  with  the  computer  without regard to the
  1902.            connected baud rate.   For  example,  most  people  find  it
  1903.            necessary  to  lock  the  interface  speed at 19200 baud (or
  1904.            9600) for normal operations.
  1905.  
  1906.            The "init speed" field of the TTY database  was  created  to
  1907.            solve  this  problem.  If this value is non-zero, Pcomm will
  1908.            only use this baud rate when talking to the modem.  The true
  1909.            connected  baud  rate  will  continue to be displayed in the
  1910.            status line.
  1911.  
  1912.       2) Multiple setups
  1913.  
  1914.            Users of  Telebit  modems  may  require  a  different  "init
  1915.            string"  or "dial string" depending on the target baud rate.
  1916.            For example, the init strings for 9600 and  19200  baud  may
  1917.            contain  the  command  "S50=255"  (wait  for the Telebit PEP
  1918.            tones) whereas the slower init strings would contain "S50=0"
  1919.            (automatic speed search).
  1920.  
  1921.            This problem is solved by creating an additional modem entry
  1922.            in the modem database.  For example, you could have an entry
  1923.            called "TELEBIT" for baud rates in the range of 300-4800 and
  1924.            another  entry  called  "FAST_TELEBIT" for baud rates in the
  1925.            range of 9600-19200.
  1926.  
  1927.            Pcomm uses the connect strings to determine if the modem can
  1928.            handle  the requested baud rate.  So, if the "TELEBIT" entry
  1929.            had connect strings for 300, 1200, 2400, and  4800  baud  it
  1930.            would  be  selected  only  if the requested baud rate was in
  1931.            that range.  Likewise, the FAST_TELEBIT would  have  connect
  1932.            strings only for 9600 and 19200 baud.
  1933.  
  1934.       3) Telebit register settings
  1935.  
  1936.            The following configuration is what I personally use for  my
  1937.            Telebit T2500's on bi-directional lines (ones with uugetty).
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.       Page 40              Pcomm Reference Manual
  1944.  
  1945.  
  1946.  
  1947.             ~&F1     restores enhanced command mode settings
  1948.             Q2       turns on result codes only when dialing out
  1949.             S0=1     answer on first ring
  1950.             S7=60    wait at least 60 seconds for a carrier
  1951.             S51=5    set interface speed to 19200 baud
  1952.             S52=1    hangup on loss of DTR
  1953.             S54=3    pass modem breaks through
  1954.             S58=2    full duplex RTS/CTS flow control
  1955.             S66=1    lock the interface speed
  1956.             S131=1   data carrier detect follows the carrier
  1957.             &W0      save in NVM A
  1958.             &W1      save in NVM B
  1959.  
  1960.  
  1961.  
  1962.       4) Sample TTY database
  1963.  
  1964.            The following is the contents of the sample TTY database:
  1965.  
  1966.  
  1967.             TTY name   Modem name     Init speed
  1968.  
  1969.             1) tty10   HAYES          0
  1970.             2) tty11   HAYES          0
  1971.             3) tty12   DIRECT         0
  1972.             4) tty13   TELEBIT        19200
  1973.             5) tty13   FAST_TELEBIT   19200
  1974.  
  1975.  
  1976.  
  1977.            Notice that entries 4 and 5 share the same TTY.
  1978.  
  1979.       5) Sample modem database entry for TELEBIT
  1980.  
  1981.            The third entry in the sample  modem  database  is  for  the
  1982.            Telebit modem designated for use at slow speeds.
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.                    Pcomm Reference Manual               Page 41
  1989.  
  1990.  
  1991.                1) Modem name (3 of 4) .... TELEBIT
  1992.                2) Modem init string ...... ATZ!~~
  1993.                3) Dialing command ........ ATDT
  1994.                4) Dialing cmd suffix ..... !
  1995.                5) Hang up string ......... ~~+++~~ATH0!
  1996.                6) Auto baud detect ....... Y
  1997.                7) 300 baud connect ....... CONNECT 300
  1998.                8) 1200 baud connect ...... CONNECT 1200
  1999.                9) 2400 baud connect ...... CONNECT 2400
  2000.               10) 4800 baud connect ...... CONNECT 4800
  2001.               11) 9600 baud connect ......
  2002.               12) 19200 baud connect .....
  2003.               13) No connect string 1 .... BUSY
  2004.               14) No connect string 2 .... ERROR
  2005.               15) No connect string 3 .... NO CARRIER
  2006.               16) No connect string 4 .... NO DIALTONE
  2007.  
  2008.  
  2009.       6) Sample modem database entry for FAST_TELEBIT
  2010.  
  2011.            The 4th entry is for the Telebit modem designated for use at
  2012.            higher speeds.
  2013.  
  2014.              1) Modem name (4 of 4) .... FAST_TELEBIT
  2015.              2) Modem init string ...... ATZ!~~ATS50=255!
  2016.              3) Dialing command ........ ATDT
  2017.              4) Dialing cmd suffix ..... !
  2018.              5) Hang up string ......... ~~+++~~ATH0!
  2019.              6) Auto baud detect ....... Y
  2020.              7) 300 baud connect .......
  2021.              8) 1200 baud connect ......
  2022.              9) 2400 baud connect ......
  2023.             10) 4800 baud connect .....
  2024.             11) 9600 baud connect ..... CONNECT 9600
  2025.             12) 19200 baud connect .... CONNECT FAST
  2026.             13) No connect string 1 ... BUSY
  2027.             14) No connect string 2 ... ERROR
  2028.             15) No connect string 3 ... NO CARRIER
  2029.             16) No connect string 4 ... NO DIALTONE
  2030.